package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {

    void insert(Role record, Long[] permissionIds);

    void deleteByPrimaryKey(Long id);

    void  updateByPrimaryKey(Role record, Long[] permissionIds);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    PageInfo<Role> query(QueryObject qo);


    List<String> queryRoleSnsByEmployeeId(Long employeeId);
}
